/*
 * @Date: 2025-06-18 18:40:21
 * @Auth: 463997479@qq.com
 * @LastEditors: 463997479@qq.com
 * @LastEditTime: 2025-07-17 15:20:52
 * @FilePath: \corpus\src\services\ant-design-pro\apply\index.ts
 */
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

export async function getViewApply(
  params: {
    // query
    /** 当前的页码 */
    current?: number;
    /** 页面的容量 */
    pageSize?: number;
    viewType?: number;
  },
  options?: { [key: string]: any },
) {
  return request<API.RuleList>('/corpus/knowledgeSubmit/viewApply', {
    method: 'POST',
    data: params,

    ...(options || {}),
  });
}

export async function getMyViewApply(
  params: {
    // query
    /** 当前的页码 */
    current?: number;
    /** 页面的容量 */
    pageSize?: number;
    viewType?: number;
  },
  options?: { [key: string]: any },
) {
  return request<API.RuleList>('/corpus/knowledgeSubmit/viewReviewing', {
    method: 'POST',
    data: params,

    ...(options || {}),
  });
}
export async function applyReview(
  params: {
    status: string;
    comments: string;
    id: number;
  },
  options?: { [key: string]: any },
) {
  return request<API.RuleList>('/corpus/knowledgeSubmit/review', {
    method: 'POST',
    data: params,

    ...(options || {}),
  });
}
